package card

import (
	"github.com/flipped-aurora/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type CasCardsRouter struct {}

// InitCasCardsRouter 初始化 casCards表 路由信息
func (s *CasCardsRouter) InitCasCardsRouter(Router *gin.RouterGroup,PublicRouter *gin.RouterGroup) {
	casCardsRouter := Router.Group("casCards").Use(middleware.OperationRecord())
	casCardsRouterWithoutRecord := Router.Group("casCards")
	casCardsRouterWithoutAuth := PublicRouter.Group("casCards")
	{
		casCardsRouter.POST("createCasCards", casCardsApi.CreateCasCards)   // 新建casCards表
		casCardsRouter.DELETE("deleteCasCards", casCardsApi.DeleteCasCards) // 删除casCards表
		casCardsRouter.DELETE("deleteCasCardsByIds", casCardsApi.DeleteCasCardsByIds) // 批量删除casCards表
		casCardsRouter.PUT("updateCasCards", casCardsApi.UpdateCasCards)    // 更新casCards表
	}
	{
		casCardsRouterWithoutRecord.GET("findCasCards", casCardsApi.FindCasCards)        // 根据ID获取casCards表
		casCardsRouterWithoutRecord.GET("getCasCardsList", casCardsApi.GetCasCardsList)  // 获取casCards表列表
	}
	{
	    casCardsRouterWithoutAuth.GET("getCasCardsDataSource", casCardsApi.GetCasCardsDataSource)  // 获取casCards表数据源
	    casCardsRouterWithoutAuth.GET("getCasCardsPublic", casCardsApi.GetCasCardsPublic)  // casCards表开放接口
	}
}
